<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>修改幻灯片</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='js/flash.js'></script>
<script language="javascript">
function checkSubmit()
{
	if(document.form1.title.value=="")
	{
		alert("幻灯标题不能为空！");
		document.form1.title.focus();
		return false;
	}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
	<tr>
		<td height="28" background="images/tbg.gif">
		&nbsp;<b><a href="flash_main.php"><u>幻灯片管理</u></a></b> &gt;&gt; 修改幻灯片</td>
	</tr>
	<tr>
		<td height="200" bgcolor="#FFFFFF" valign="top">
			<table width="100%" border="0" cellspacing="4" cellpadding="4">
				<form name="form1" action="flash_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()">
				<input type='hidden' name='dopost' value='edit'>
				<input type='hidden' name='id' value='<?php echo $id?>'>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp;幻灯标题：</td>
								<td width='710'><input name="title" type="text" id="title" style="width:388px" value="<?php echo $row['title']?>" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp;所属分组：</td>
								<td width='710'>
									<select name='typeid' style='width:150' id="typeid">
										<?php echo $option;?>
									</select>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<style>
				.divpre img{height:50px;}
				</style>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90"> &nbsp;幻灯大图：</td>
								<td width="550">
									<table width="100%" border="0" cellspacing="1" cellpadding="1">
										<tr>
											<td height="30">
												<input name="litpic" id="litpic" type="text" style="width:220px;opacity:1;margin-left:0;cursor:auto;" value="<?php echo $row['litpic']?>" />
												<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />
												<iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
												<span class="litpic_span"><input name="bigpic" type="file" id="bigpic"  onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'flash_edit.php','edit','bigpic','litpic');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;" /></span>
												<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litpic','imgstick','picview');" class='np coolbg'/>
												<input type='checkbox' class='np' name='ddisremote' value='1'>远程 
											</td>
										</tr>
									</table>
								</td>
								<td width="160" align="center">
									<div id='divpicview' class='divpre'><img src="<?php if($row['litpic']!="") echo $row['litpic']; else echo "images/pview.gif";?>"></div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90"> &nbsp;幻灯小图：</td>
								<td width="550">
									<table width="100%" border="0" cellspacing="1" cellpadding="1">
										<tr>
											<td height="30">
												<input name="litimg" id="litimg" type="text" style="width:220px" value="<?php echo $row['litimg']?>" />
												<input type="button"  value="本地上传" style="width:70px;cursor:pointer;" />
												<iframe name='upsmallpicfra' id='upsmallpicfra' src='' width='200' height='200' style='display:none'></iframe>
												<span class="litpic_span"><input name="smallpic" type="file" id="smallpic"  onChange="SeePicNew(this, 'divsmallpicview', 'upsmallpicfra', 165, 'flash_edit.php', 'edit', 'smallpic', 'litimg');" size="1" class='np coolbg' style="cursor:pointer;height:20px;margin-left:-20px;opacity:0;width:85px;"/></span>
												<input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImageN('form1.litimg','imgstick','smallpicview');" class='np coolbg'/>
												<input type='checkbox' class='np' name='ddisremote2' value='1'>远程 
											</td>
										</tr>
									</table>
								</td>
								<td width="160" align="center">
									<div id='divsmallpicview' class='divpre'><img src="<?php if($row['litimg']!="") echo $row['litimg']; else echo "images/pview.gif";?>"></div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp;内容描述：</td>
								<td width='710'>
									<textarea class="alltxt" id="content" rows="4" style="height:50px" cols="70" name="content"><?php echo $row['content']?></textarea>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp;链接地址：</td>
								<td width='710'>
									<input type="text" size="60" name="arcurl" value="<?php echo $row['arcurl']?>"/>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp;排序：</td>
								<td width='710'>
									<input name="sortrank" type="text" id="sortrank" onKeyUp="this.value=this.value.replace(/\D/g,'')" value="<?php echo $row['sortrank']?>" size="8" onafterpaste="this.value=this.value.replace(/\D/g,'')" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="51">&nbsp;</td>
					<td>
						<input type="submit" name="Submit" value=" 提 交 " class="np coolbg" />　 　
						<input type="reset" name="Submit" value=" 返 回 " onClick="location.href='<?php echo $ENV_GOBACK_URL?>';" class="np coolbg" />         
					</td>
				</tr>
			</form>
			</table>
		</td>
	</tr>
</table>
</body>
</html>